#!/bin/bash

name='nginx'

ffroot()
{
	if [ $(id -u) != "0" ]; then
	echo "Error: You must be root to run this script, please use root to install"
	exit 1
	fi
}

installsoft()
{
	isinstall=$(dpkg -l | grep $name)

	if [ ! -n "$isinstall" ]; then
		apt-get install $name -y
	else	
		echo "installed"
	fi
}


applyconf()
{
	cp ./fastcow.conf /etc/nginx
}

#ffroot

installsoft
